import request from '@/utils/request'
import axios from 'axios'
import { data } from 'browserslist'

// 分页查询风险控制列表
export function listManagerMethod(params) {
  return request({
    url: '/aqsc/managerMethod/list',
    method: 'get',
    params
  })
}
// 查询单条风险控制列表
export function OneManagerMethod(params) {
  return request({
    url: '/aqsc/managerMethod/selectOne?id=' + params,
    method: 'get'
  })
}

// 查询smmtOne详细
export function getTypeOne() {
  return request({
    url: '/scyf/managerMethod/selectTypeOne',
    method: 'get',

  })
}
// 查询smmtTwo详细
export function getTypeTwo() {
  return request({
    url: '/scyf/managerMethod/selectTypeTwo',
    method: 'get',

  })
}

// 查询所有事件的dto类
export function getAllEvent() {
  return request({
    url: '/scyf/managerMethod/selectAllEventDto',
    method: 'get',

  })
}


// 批量删除风险控制列表
export function deletes(ids) {
  return request({
    url: '/scyf/managerMethod/deletes/' + ids,
    method: 'delete',
  })
}


// 新增dto
export function addManagerMethodDto(data) {
  return request({
    url: '/scyf/managerMethod/save',
    method: 'post',
    data: data
  })
}

// 修改dto
export function updateManagerMethodDto(data) {
  return request({
    url: '/scyf/managerMethod/save',
    method: 'put',
    data: data
  })
}





